<!DOCTYPE html>
<html>
<head>
<title>景点信息表</title>
<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
		
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-3 control-label">景点名称</div>
			   	<div class="col-sm-9">
			      <input type="text" class="form-control" v-model="tInfo.tourName" placeholder="景点名称"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-3 control-label">景点信息</div>
			   	<div class="col-sm-9">
			   	<textarea rows="5" cols="50" class="form-control" v-model="tInfo.tourInfo" placeholder="景点信息">
</textarea>
			      
			    </div>
			</div><div class="form-group">
			   	<div class="col-sm-3 control-label">景点图片</div>
			   	<div class="col-sm-9">
			   	<input type="file"			
										name="image" id="image" >
			      
			    </div>
			</div>
									
									<div class="form-group">
			   	<div class="col-sm-3 control-label">所属类别</div>
			   	<div class="col-sm-9">
			     <select class="form-control " v-model="tInfo.tCategoryId"
							>
							<option 
								value=""  select="select">选择类别</option>
							<option v-for="category in categoryEntity"
								v-bind:value="category.id">{{category.name}}</option>
						</select>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-3 control-label">景区地址</div>
			   	<div class="col-sm-9">
			      <input type="text" class="form-control" v-model="tInfo.tourAddr" placeholder="景区地址"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-3 control-label">旅游时间</div>
			   	<div class="col-sm-9">
			      <input type="text" class="form-control" v-model="tInfo.tourTime" placeholder="旅游时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-3 control-label">开放时间</div>
			   	<div class="col-sm-9">
			      <input type="text" class="form-control" v-model="tInfo.tourOpenTime" placeholder="开放时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-3 control-label">门票</div>
			   	<div class="col-sm-9">
			      <input type="text" class="form-control" v-model="tInfo.tourTicket" placeholder="门票"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-3 control-label">交通路线</div>
			   	<div class="col-sm-9">
			      <input type="text" class="form-control" v-model="tInfo.tourJiaotong" placeholder="交通路线"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-3 control-label">旅游提示</div>
			   	<div class="col-sm-9">
			      <input type="text" class="form-control" v-model="tInfo.tourTishi" placeholder="旅游提示"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-3 control-label">城市分类</div>
			   	<div class="col-sm-9">
			   	<select class="form-control " v-model="tInfo.tCityId"
							>
							<option value="">选择城市</option>
							<option v-for="city in citys"
								v-bind:value="city.id">{{city.cityName}}</option>
						</select>
			    </div>
			</div>
									
				<div class="form-group">
				<div class="col-sm-3 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script
		src="${request.contextPath}/statics/libs/ajaxfileupload.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/js/modules/web/tinfo.js?_${.now?long}"></script>
</body>
</html>